#include <stdio.h>
#include <stdlib.h>

int day_number(int d, int m, int y)
{
	if (((Y%4==0)&&(Y%100!=0))||(Y%400==0))
		{
		a[2]=29;
		}
	if ((m>12)||(m<0)||(y<0)||((m>0)&&(m<12)&&((d<0)||(d>a[m])))
		{
		return;
		}
	
}

void main()
{
	int a[12]={31,28,31,30,31,30,31,31,30,31,30,31}, i, D, M, Y, N;
